<?php
include_once("king_head.php");
include_once('config.php');
$sid=$_SESSION['SITE_ID'];
if(isset($_POST["btnpass"]))
{
$p1=$_POST["pass"];
$p2=$_POST["cpass"];
//$sid=$_SESSION['SITE_ID'];
if($p1==$p2)
	{
	$qry="update reseller set pwd='$p1' where site_id=".$sid;
	//echo $qry;
	mysql_query($qry);
		echo "<H4><FONT COLOR=red>Password Reset Successfully.</FONT>!</H4>";

	}
	else
		echo "<H4><FONT COLOR=red>Passwords do not match.</FONT>!</H4>";
}
?>

<FORM METHOD=POST ACTION="resetpass.php?site_id=<?php echo $_SESSION['SITE_ID']?>">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="56%" id="AutoNumber1">
  <tr>
    <td width="33%">New Password:</td>
    <td width="67%">&nbsp;<input type="password" name="pass" size="20"></td>
  </tr>
  <tr>
    <td width="33%">Confirm Password:</td>
    <td width="67%">&nbsp;<input type="password" name="cpass" size="20"></td>
  </tr>
  <tr>
    <td width="33%">&nbsp;</td>
    <td width="67%">&nbsp;<input type="submit" value="Reset Password" name="btnpass"></td>
  </tr>
</table>
</FORM>
<?php
include_once("king_foot.php");
?>
